#include "computercontroller.h"
#include "SelectDialog.h"
ComputerController::ComputerController() {
}
void ComputerController::on_CellSelected(int row, int col, int button) {
    game.cellSelect(row,col);
}
void ComputerController::on_NewGame() {
    game.startNewGame(gameInt);
}
void ComputerController::SetView(IChessView *view) {
    myView = view;
    game.loadView(myView);
}
bool ComputerController::on_DragEnd(int row, int col) {
    game.onDragStart(row,col);
}
void ComputerController::on_DragStart(int row, int col) {
    game.onDragStart(row,col);
}
void ComputerController::on_LoadGame() {
    game.loadGame();
}
void ComputerController::on_QuitGame() {

}
void ComputerController::on_SaveGame() {
    game.saveGame();
}
void ComputerController::on_SaveGameAs() {
    game.saveGameAs();
}
void ComputerController::on_TimerEvent() {
    game.onTimer();
}
void ComputerController::on_UndoMove() {
    game.onUndo();
}
